package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@Table("shequ.sqfw_downfile_record_log")
@Comment("下载记录日志信息表")
@ApiModel(description = "下载文件日志记录信息表")
public class SqfwDownFileRecordLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column("id")
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.CHAR, width = 32)
    @PrevInsert(els = {@EL("snowflake()")}, nullEffective = true)
    private String id;

    @Column("entity_id")
    @Comment("业务iD")
    @ApiModelProperty(description = "业务iD")
    @ColDefine(type = ColType.VARCHAR, width = 1000)
    private String entityId;

    @Column("title")
    @Comment("参数标题")
    @ApiModelProperty(description = "参数标题")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String title;

    @Column("req_param")
    @Comment("请求参数")
    @ApiModelProperty(description = "请求参数")
    @ColDefine(type = ColType.TEXT)
    private String reqParam;

    @Column("content")
    @Comment("结果内容")
    @ApiModelProperty(description = "结果内容")
    @ColDefine(type = ColType.TEXT)
    private String content;

    @Column("url")
    @Comment("下载链接")
    @ApiModelProperty(description = "下载链接")
    @ColDefine(type = ColType.TEXT)
    private String url;

    @Column("create_id")
    @Comment("创建人")
    @ApiModelProperty(description = "create_id")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String createId;

    @Column("create_name")
    @Comment("创建人姓名")
    @ApiModelProperty(description = "创建人姓名")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String createName;

    @Column("create_date")
    @Comment("创建时间")
    @ApiModelProperty(description = "创建时间")
    @ColDefine(type = ColType.DATETIME)
    private LocalDateTime createDate;
}
